package s01;

/**
 * @ClassName ThreadDemo01
 * @Description 测试类
 * @Author Li
 * @Date 2022/8/8 9:50
 * @ModifyDate 2022/8/8 9:50
 * @Version 1.0
 */
public class ThreadDemo01 {
    public static void main(String[] args) {
        MyThread thread = new MyThread("aThread");
        thread.start(); // 开启新的线程
        for (int i = 0; i < 20; i++) {
            System.out.println("mainThread ->" + i);
        }
    }
}
